{% extends "../base.html"%} {% block header_title %}后台管理首页{% end %}{% block body %}
<div class="row">
    <div class="col-xs-1 col-sm-1 col-md-1 sidebar">
        <div class="user">
            <img src="{{static_url('images/ico-user-header.svg')}}">
            <h5>{{current_user.get('username')}}</h5>
            <a href="/auth/signout"><span class="glyphicon glyphicon-cog"title="用户中心"></span></a>&nbsp;
            <a href="/auth/signout">
                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
            </a>
        </div>
        <ul class="nav nav-sidebar">
            <li title="首页">
                <a href="/home">
                    <i class="fa fa-home"></i>
                    <span class="hidden-sm hidden-xs text">首页</span>
                </a>
            </li>
            <li title="申请" class="active">
                <a href="/apply/my">
                    <i class="fa fa-clipboard"></i>
                    <span class="hidden-sm hidden-xs text">申请</span>
                </a>
            </li>
            <li title="应用">
                <a href="/app/my">
                    <i class="fa fa-cube"></i>
                    <span class="hidden-sm hidden-xs text">应用</span>
                </a>
            </li>
            <li title="数据">
                <a href="/data">
                    <i class="fa fa-archive"></i>
                    <span class="hidden-sm hidden-xs text">数据集</span>
                </a>
            </li>
            <li title="导出">
                <a href="/records/my">
                    <i class="fa fa-hdd-o"></i>
                    <span class="hidden-sm hidden-xs text">结果集</span>
                </a>
            </li>
        </ul>
    </div>
    <div class="col-xs-11 col-xs-offset-1 col-sm-11 col-sm-offset-1 col-md-11 col-md-offset-1 main">
        <div class="page-header">
            <h1>申请表单</h1><small>这里列举的是数据的细节属性<br>可以查看，也是数据申请的第一步<br></small>
        </div>
        <section>
            <div class="box">
                <a href="/apply/my" class="btn btn-default">
                    <i class="fa fa-ban"></i> 放弃</a>&nbsp;
            </div>
            <div class="row">
                <div class="col-sm-12 col-md-4 pd-r">
                    <div class="box">
                        <div class="box-title">
                            <h5>所选数据</h5>
                        </div>
                        <div class="box-body">
                            <div class="table-responsive">
                                <table class="table table-bordered table-striped">
                                    <colgroup>
                                        <col class="col-xs-3">
                                        <col class="col-xs-7">
                                    </colgroup>
                                    <thead>
                                        <tr>
                                            <th>说明</th>
                                            <th>描述</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <th scope="row">
                                                <code>数据集</code>
                                            </th>
                                            <td>{{detail['title']}}</td>
                                        </tr>
                                        <tr>
                                            <th scope="row">
                                                <code>来源</code>
                                            </th>
                                            <td>{{detail['from']}}</td>
                                        </tr>
                                        <tr>
                                            <th scope="row">
                                                <code>类型</code>
                                            </th>
                                            <td>{{detail['dtype']}}</td>
                                        </tr>
                                        <tr>
                                            <th scope="row">
                                                <code>发布时间</code>
                                            </th>
                                            <td>{{date_format(detail['updatetime'])}}</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-12 col-md-8 pd-l">
                    <div class="box">
                        <div class="box-title">
                            <h5>申请表单</h5>
                        </div>
                        <div class="box-body">
                            <!--
                            项目的背景
                            项目的目标
                            项目的主要研究内容
                            项目的预期结果
                             -->
                            <form class="form-horizontal" method="post" action="/apply/form/{{detail['_id']}}">
                                <div class="form-content">
                                    <div class="form-group">
                                        <label class="control-label"><span class="text-danger">*</span> 项目名称</label>
                                        <input type="text" class="form-control" name="title">
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label">项目的背景</label>
                                        <textarea class="form-control form-textarea" name="background"></textarea>

                                    </div>
                                    <div class="form-group">
                                        <label class="control-label">项目的目标</label>
                                        <textarea class="form-control form-textarea" name="target"></textarea>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label">主要研究内容</label>
                                        <textarea class="form-control form-textarea" name="content"></textarea>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label">预期结果</label>

                                        <textarea class="form-control form-textarea" name="expectation"></textarea>

                                    </div>
                                    <div class="form-group">
                                        <label class="control-label">其他附加说明</label>
                                        <textarea class="form-control form-textarea" name="note"></textarea>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label"><span class="text-danger">*</span> 所需的软件</label>
                                        <textarea class="form-control form-textarea" name="expectedsoft"></textarea>
                                    </div>
                                    <hr>
                                    <div class="form-group">
                                        <div class="col-md-12">
                                            <button type="submit" class="btn btn-success btn-block">开始申请</button>
                                            {% raw xsrf_form_html() %}
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
</div>

{% end %} {% block static_js %}
<script src="{{static_url('assets/js/jquery.validation.min.js')}}" charset="utf-8"></script>
{% end %}
